<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 判断两个对象是否全等
        // ===
        console.log(-0 === +0);//true
        console.log(NaN === NaN);//false

        console.log(Object.is({},{}));//false
        console.log(Object.is([],[]));//false
        console.log(Object.is(1,1));//true

        console.log(Object.is(-0,+0));//false
        console.log(Object.is(NaN,NaN));//true

    </script>
</body>
</html>